<%@ page import="com.macrosolution.exdebito.Customer" %>



			<div class="${hasErrors(bean: customerInstance, field: 'age', 'error')} ">
				<label for="age" class="control-label"><g:message code="customer.age.label" default="Age" /></label>
				<div>
					<g:field class="form-control" name="age" type="number" value="${customerInstance.age}"/>
					<span class="help-inline">${hasErrors(bean: customerInstance, field: 'age', 'error')}</span>
				</div>
			</div>

			<div class="${hasErrors(bean: customerInstance, field: 'abode', 'error')} required">
				<label for="abode" class="control-label"><g:message code="customer.abode.label" default="Abode" /><span class="required-indicator">*</span></label>
				<div>
					<g:select class="form-control" id="abode" name="abode.id" from="${com.macrosolution.exdebito.Address.list()}" optionKey="id" required="" value="${customerInstance?.abode?.id}" class="many-to-one"/>
					<span class="help-inline">${hasErrors(bean: customerInstance, field: 'abode', 'error')}</span>
				</div>
			</div>

			<div class="${hasErrors(bean: customerInstance, field: 'born', 'error')} required">
				<label for="born" class="control-label"><g:message code="customer.born.label" default="Born" /><span class="required-indicator">*</span></label>
				<div>
					<bs:datePicker name="born" precision="day"  value="${customerInstance?.born}"  />
					<span class="help-inline">${hasErrors(bean: customerInstance, field: 'born', 'error')}</span>
				</div>
			</div>

			<div class="${hasErrors(bean: customerInstance, field: 'bornDistrict', 'error')} ">
				<label for="bornDistrict" class="control-label"><g:message code="customer.bornDistrict.label" default="Born District" /></label>
				<div>
					<g:textField class="form-control" name="bornDistrict" value="${customerInstance?.bornDistrict}"/>
					<span class="help-inline">${hasErrors(bean: customerInstance, field: 'bornDistrict', 'error')}</span>
				</div>
			</div>

			<div class="${hasErrors(bean: customerInstance, field: 'bornMunicipality', 'error')} ">
				<label for="bornMunicipality" class="control-label"><g:message code="customer.bornMunicipality.label" default="Born Municipality" /></label>
				<div>
					<g:textField class="form-control" name="bornMunicipality" value="${customerInstance?.bornMunicipality}"/>
					<span class="help-inline">${hasErrors(bean: customerInstance, field: 'bornMunicipality', 'error')}</span>
				</div>
			</div>

			<div class="${hasErrors(bean: customerInstance, field: 'cf_piva', 'error')} ">
				<label for="cf_piva" class="control-label"><g:message code="customer.cf_piva.label" default="Cfpiva" /></label>
				<div>
					<g:textField class="form-control" name="cf_piva" value="${customerInstance?.cf_piva}"/>
					<span class="help-inline">${hasErrors(bean: customerInstance, field: 'cf_piva', 'error')}</span>
				</div>
			</div>

			<div class="${hasErrors(bean: customerInstance, field: 'citizen', 'error')} ">
				<label for="citizen" class="control-label"><g:message code="customer.citizen.label" default="Citizen" /></label>
				<div>
					<g:textField class="form-control" name="citizen" value="${customerInstance?.citizen}"/>
					<span class="help-inline">${hasErrors(bean: customerInstance, field: 'citizen', 'error')}</span>
				</div>
			</div>

			<div class="${hasErrors(bean: customerInstance, field: 'emails', 'error')} ">
				<label for="emails" class="control-label"><g:message code="customer.emails.label" default="Emails" /></label>
				<div>
					
					<span class="help-inline">${hasErrors(bean: customerInstance, field: 'emails', 'error')}</span>
				</div>
			</div>

			<div class="${hasErrors(bean: customerInstance, field: 'inItalyBy', 'error')} required">
				<label for="inItalyBy" class="control-label"><g:message code="customer.inItalyBy.label" default="In Italy By" /><span class="required-indicator">*</span></label>
				<div>
					<g:field class="form-control" name="inItalyBy" type="number" value="${customerInstance.inItalyBy}" required=""/>
					<span class="help-inline">${hasErrors(bean: customerInstance, field: 'inItalyBy', 'error')}</span>
				</div>
			</div>

			<div class="${hasErrors(bean: customerInstance, field: 'name', 'error')} ">
				<label for="name" class="control-label"><g:message code="customer.name.label" default="Name" /></label>
				<div>
					<g:textField class="form-control" name="name" value="${customerInstance?.name}"/>
					<span class="help-inline">${hasErrors(bean: customerInstance, field: 'name', 'error')}</span>
				</div>
			</div>

			<div class="${hasErrors(bean: customerInstance, field: 'nationality', 'error')} ">
				<label for="nationality" class="control-label"><g:message code="customer.nationality.label" default="Nationality" /></label>
				<div>
					<g:textField class="form-control" name="nationality" value="${customerInstance?.nationality}"/>
					<span class="help-inline">${hasErrors(bean: customerInstance, field: 'nationality', 'error')}</span>
				</div>
			</div>

			<div class="${hasErrors(bean: customerInstance, field: 'phones', 'error')} ">
				<label for="phones" class="control-label"><g:message code="customer.phones.label" default="Phones" /></label>
				<div>
					
					<span class="help-inline">${hasErrors(bean: customerInstance, field: 'phones', 'error')}</span>
				</div>
			</div>

			<div class="${hasErrors(bean: customerInstance, field: 'residence', 'error')} required">
				<label for="residence" class="control-label"><g:message code="customer.residence.label" default="Residence" /><span class="required-indicator">*</span></label>
				<div>
					<g:select class="form-control" id="residence" name="residence.id" from="${com.macrosolution.exdebito.Address.list()}" optionKey="id" required="" value="${customerInstance?.residence?.id}" class="many-to-one"/>
					<span class="help-inline">${hasErrors(bean: customerInstance, field: 'residence', 'error')}</span>
				</div>
			</div>

			<div class="${hasErrors(bean: customerInstance, field: 'sex', 'error')} ">
				<label for="sex" class="control-label"><g:message code="customer.sex.label" default="Sex" /></label>
				<div>
					<g:textField class="form-control" name="sex" value="${customerInstance?.sex}"/>
					<span class="help-inline">${hasErrors(bean: customerInstance, field: 'sex', 'error')}</span>
				</div>
			</div>

			<div class="${hasErrors(bean: customerInstance, field: 'surname', 'error')} ">
				<label for="surname" class="control-label"><g:message code="customer.surname.label" default="Surname" /></label>
				<div>
					<g:textField class="form-control" name="surname" value="${customerInstance?.surname}"/>
					<span class="help-inline">${hasErrors(bean: customerInstance, field: 'surname', 'error')}</span>
				</div>
			</div>

